# -*-coding:utf-8-*-

import pandas as pd     	
import numpy as np
import matplotlib.pyplot as plt


# x = np.random.randn(0, 100, 1)
x = np.linspace(-np.pi*2, 2*np.pi)
y1 = np.sin(x)+np.pi*0.5-np.cos(x)
y2 = np.sin(x)-np.cos(x)

fi, ax = plt.subplots(figsize=(8,6))
ax.spines['left'].set_position('center')
ax.spines['bottom'].set_position('center')
ax.spines['right'].set_visible(False)
ax.spines['top'].set_visible(False)
ax.set_xticks([-6,-4,-2,0,2,4,6])
ax.set_xticklabels([r'-3$\pi$', r'-2$\pi$',  r'-$\pi$', '0', r'$\pi$', r'2$\pi$',r'3$\pi$'])
ax.set_yticks = ([-4,-2,-1,0,1,2,3])
ax.set_yticklabels([-3,-2,-1,0,1,2,3])
ax.yaxis.tick_left()
ax.xaxis.tick_bottom()
ax.plot(x,y1,'r',x,y2,'m')
plt.show()
